import Vue from "vue";
import VueRouter from "vue-router";
import HomeView from "../views/HomeView.vue";

Vue.use(VueRouter);

const routes = [
    {
        path: "/",
        name: "home",
        component: HomeView,
        children: [],
    },
    {
        path: "/about",
        component: () => import("../views/AboutView.vue"),
    },
    {
        path: "/login",
        component: () => import("../views/LoginView.vue"),
    },
    {
        path: "/loginel",
        component: () => import("../views/LoginViewEL.vue"),
    },
    {
        path: "/loginold",
        component: () => import("../views/LoginViewOld.vue"),
    },
    {
        path: "/card",
        component: () => import("../views/CardListView.vue"),
    }
];

const router = new VueRouter({
    mode: "history",
    base: process.env.BASE_URL,
    routes,
});

export default router;
